import axiosConfig from "./axiosConfig";

export default {
    // 1机床产量排名;运行时间排名
    getProduceRank(params) {
        return axiosConfig.hncWebGet("/getProduceRank", params);
    },
    getAllTask(params) {
        return axiosConfig.hncWebGet("/getAllTask", params);
    },
    getSumStateTime(params) {
        return axiosConfig.hncWebGet("/getSumStateTime", params);
    },
    //报警分析
    MacAlarmStatisticByCompId(params) {
        return axiosConfig.hncWebGet("/MacAlarmStatisticByCompId.action", params);
    },
    //获取班次列表数据
    getShiftByDay(params) {
        return axiosConfig.hncWebGet("/getShiftByDay", params);
    },
    //  班次日历
    getAllDay(params) {
        return axiosConfig.hncWebGet("/getAllDay", params);
    },
    //设备数量
    getStateCount(params) {
        return axiosConfig.hncWebGet("/getStateCount", params);
    },
    //

    //查询登录用户所在厂的别名和logo图
    selCompanyAliasAndPicture(params) {
        return axiosConfig.hncWebGet("/selCompanyAliasAndPicture.action", params);
    },
    //上传和覆盖厂别名和logo
    uploadAliasAndPicture(params) {
        return axiosConfig.hncWebPost("/uploadAliasAndPictureId.action", params, { headers: { "Content-Type": "multipart/form-data" } });
        // return axiosConfig.hncWebPost("/uploadAliasAndPicture.action", params,);
    },
}